#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <queue>
#include <functional>  // greater算法的头文件
using namespace std;

void test_priority_queue() {
	priority_queue<int> pQ;

	pQ.push(2);
	pQ.push(5);
	pQ.push(1);
	pQ.push(6);
	pQ.push(8);

	while (!pQ.empty()) {
		cout << pQ.top() << " ";
		pQ.pop();
	}
	cout << endl;
}
